package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :ttm
 * @description :
 */
public interface PurchaseListGoodsDao {
    Integer savePurchaseList(PurchaseList purchaseList);

    Integer savePurchaseListGoods(PurchaseListGoods purchaseListGoods);

    List<PurchaseList> getPurchaseList(@Param("purchaseNumber") String purchaseNumber,
                                            @Param("supplierId") Integer supplierId,
                                            @Param("state") Integer state,
                                            @Param("sTime") String sTime,
                                            @Param("eTime") String eTime);

    List<PurchaseListGoods> getPurchaseListGoodsByPurchaseListId(Integer purchaseListId);

    Integer getPurchaseListById(Integer purchaseListId);

    Integer deletePurchaseListGoodsByPurchaseListId(Integer purchaseListId);

    Integer deletePurchaseListById(Integer purchaseListId);

}
